<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素的定时执行</title>
</head>
<body>
        <script>
            var i = 0;
       function foo() {
                i = i + 5;
           console.log(i)
       }
       setInterval(foo,10);     //定时执行
        </script>

</body>
</html>